package object;

import java.time.LocalDate;
import java.time.temporal.ChronoUnit;

/**
 * @TODO
 * @Author xu
 * 2025/3/10
 */
import java.time.LocalDate;
import java.time.temporal.ChronoUnit;
public class Date01 {
    public static void main(String[] args) {
        LocalDate startDate = LocalDate.of(2012, 12, 28);
        LocalDate endDate = LocalDate.of(2014, 5, 25);

        long daysBetween = ChronoUnit.DAYS.between(startDate, endDate);
        System.out.println("从 2012-12-28 到 2014-5-25 中间有 " + daysBetween + " 天。");
    }

}
